package com.mhc.suzuki.dal.mapper;

import com.mhc.suzuki.dal.model.GuaranteeDO;
import com.mhc.suzuki.dal.query.GuaranteeQuery;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
 * MyBatis Mapper for Guarantee.
 */
 @Mapper
 @Repository
public interface GuaranteeMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(GuaranteeQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(GuaranteeQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(GuaranteeDO record);

    /**
     * insert selective.
     */
    int insertSelective(GuaranteeDO record);

    /**
     * select by query condition.
     */
    List<GuaranteeDO> selectByQuery(GuaranteeQuery query);

    /**
     * select by primary key.
     */
    GuaranteeDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") GuaranteeDO record, @Param("query") GuaranteeQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") GuaranteeDO record, @Param("query") GuaranteeQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(GuaranteeDO record);
}